package com.bw.liuyushan.zhuangao4_weektest2.RequestApi;

import com.bw.liuyushan.zhuangao4_weektest2.Entity.UserBean;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * ZhuanGao4_WeekTest2
 * file name is : APIUser
 * created by Ender on 2021/8/23 9:57.
 * author : 刘雨杉
 * Describe(作用):
 */
public interface APIUser {
    public static final String url="https://www.wanandroid.com/";
    @POST("user/login")
    Observable<UserBean> loginTest(@Query("username") String username, @Query("password") String password);
    @POST("user/register")
    Observable<UserBean> regTest(@Query("username") String username,@Query("password") String password,@Query("repassword") String repassword);
}
